package com.dao;

import com.model.Student;
import com.utils.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapper {

    int findStudentCount(@Param("clazzCodes") List<String> clazzCodes, @Param("search") String search);

    List<Student> findStudents(@Param("clazzCodes") List<String> clazzCodes, @Param("search") String search, @Param("pageParam") PageParam pageParam);

    void updateStudent(@Param("student") Student student);

    void insertStudent(@Param("student") Student student);

    void delStudent(@Param("ids") List<Long> ids);

    List<Student> findClazzStudents(@Param("clazzCode") String clazzCode);

    void updatePassword(@Param("id") Long id, @Param("studentName") String studentName, @Param("password") String password);

    void updateName(@Param("id") Long id, @Param("studentName") String studentName);

    Student findStudentByName(@Param("username") String username);
}
